package com.youlai.boot.factory.service;

import com.youlai.boot.factory.model.entity.WorkReportPackage;
import com.youlai.boot.factory.model.form.WorkReportPackageForm;
import com.youlai.boot.factory.model.query.WorkReportPackageQuery;
import com.youlai.boot.factory.model.vo.WorkReportPackageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 报工单-分包关联服务类
 *
 * @author youlaitech
 * @since 2025-10-13 13:37
 */
public interface WorkReportPackageService extends IService<WorkReportPackage> {

    /**
     *报工单-分包关联分页列表
     *
     * @return {@link IPage<WorkReportPackageVO>} 报工单-分包关联分页列表
     */
    IPage<WorkReportPackageVO> getWorkReportPackagePage(WorkReportPackageQuery queryParams);

    /**
     * 获取报工单-分包关联表单数据
     *
     * @param id 报工单-分包关联ID
     * @return 报工单-分包关联表单数据
     */
     WorkReportPackageForm getWorkReportPackageFormData(Long id);

    /**
     * 新增报工单-分包关联
     *
     * @param formData 报工单-分包关联表单对象
     * @return 是否新增成功
     */
    boolean saveWorkReportPackage(WorkReportPackageForm formData);

    /**
     * 修改报工单-分包关联
     *
     * @param id   报工单-分包关联ID
     * @param formData 报工单-分包关联表单对象
     * @return 是否修改成功
     */
    boolean updateWorkReportPackage(Long id, WorkReportPackageForm formData);

    /**
     * 删除报工单-分包关联
     *
     * @param ids 报工单-分包关联ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteWorkReportPackages(String ids);

}
